import axios from '@/libs/request/axios'

export const getAffiliationInfo = (params) => {
    return axios.request({
        url: '/channel/channelAffiliated/getChannelInfo',
        data:params,
        method: 'post'
    });
}

export const upDateStatusByIds = (ids) => {
    return axios.request({
        url: `/channel/channelAffiliated/upDateStatusByIds/${ids}`,
        method: 'post'
    });
}

export const upDateCaseStatusByIds = (params) => {
    return axios.request({
        url: '/channel/caseAffiliation/updateCaseAffiliationStatus',
        method: 'post',
        data:params
    });
}

export const saveThirdOrNetCar = (params) => {
    return axios.request({
        url: '/case/channelAffiliated/saveThirdOrNetCar',
        method: 'post',
        data:params
    });
}

export const getChannelFullName = (param) => {
    return axios.request({
        url: '/channel/channelAffiliated/getChannelFullName',
        method: 'post',
        data:param
    });
}


export const deleteInfo = (param) => {
    return axios.request({
        url: '/channel/channelAffiliated/deleteInfo',
        method: 'post',
        data:param
    })
}

export const getAffiliationByChannelId = (params) => {
    return axios.request({
        url: '/channel/channelAffiliated/getAffiliation',
        params:params,
        method: 'post'
    });
}
//禁用或启用第三方挂靠关系
export const disableAffiliatedRelation = (params) => {
    return axios.request({
        url: '/channel/caseAffiliation/stopChannel',
        data:params,
        method: 'post'
    })
}

